<!DOCTYPE html>
<html xmlns:th="http://www.springframework.org/schema/data/jaxb">
<head>
    <meta charset="utf-8">
    <title>用户注册</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
    <style type="text/css">
        .layui-input {
            border-color: #009688;
        }

        body {
            background-color: #ffffff
        }

        .layui-form-select .layui-input {
            padding-right: 0px;
            cursor: pointer;
        }

        .layui-nav {
            padding-left: 10%;
            padding-right: 10%;
        }
    </style>
</head>
<body>
<ul class="layui-nav layui-bg-black">
    <img th:src="@{/images/logo.png}" style="margin-right: 30px">
    <li class="layui-nav-item"><a href="/">网站首页</a></li>
    <li class="layui-nav-item" style="float: right;">
    <div th:if="${session.uid == null}">
        <button class="layui-btn layui-btn-radius layui-btn-sm" onclick="window.location.href='/user//login'">登录</button>
    </div>
    </li>
</ul>
<br>
<br>
<br>
<br>
<form class="layui-form layui-form-pane1" action="/user/signIn/result" method="post" style="text-align: center;">
    <h2 style="color: #009688">用户注册</h2>
    <br>
    <div class="layui-input-inline">
        <input type="text" name="name" lay-verify="required" placeholder="请输入姓名/企业名" autocomplete="off"
               class="layui-input">
    </div>
    <br>
    <br>
    <div class="layui-input-inline">
        <input type="mail" name="mail" lay-verify="required|email" placeholder="请输入邮箱" autocomplete="off"
               class="layui-input">
    </div>
    <br>
    <br>
    <div class="layui-input-inline">
        <input type="password" name="password" lay-verify="required|pass" placeholder="请输入密码" autocomplete="off"
               class="layui-input">
    </div>
    <br>
    <br>
    <button class="layui-btn" lay-submit lay-filter="*">注册</button>
    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    <br><br>
    <span th:text="${msg}" style="color: #999;"></span>
</form>

<br>
<br>
<br>

<script th:src="@{/layui/layui.all.js}"></script>
<script>
    //由于模块都一次性加载，因此不用执行 layui.use() 来加载对应模块，直接使用即可：
    ;!function () {
        var layer = layui.layer
            , form = layui.form;

        // layer.msg('Hello World');
    }();
</script>


</body>
</html>
